package com.ljy.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LeaseOrders implements Serializable {

    /**
     * 订单状态 1待付款 2待准备 3待自提 4使用中 5已完成 6已归还 7已退款 8已取消
     */
    public static final Short PENDING_PAYMENT=1;
    public static final Short PENDING_PREPEND=2;
    public static final Short PENDING_PICK=3;
    public static final Short USING=4;
    public static final Short COMPLETED=5;
    public static final Short RETURNED=6;
    public static final Short REFUND=7;
    public static final Short CANCELLED=8;



    private Integer id;
    private Integer userId;
    private Integer leaseId;
    private Short status;
    private String orderNum;
    private String name;
    private String image;
    private String pickup;
    private LocalDateTime createTime;
    private LocalDateTime payTime;
    private LocalDateTime endTime;
    private BigDecimal amount;
    private String phone;
    private String fullName;
    private String dormitory;
    private Integer specTime;
    private Integer timeNumber;
    private String reason;
    private LocalDateTime cancelTime;
}
